﻿/*+===================================================================
File:      EnemyMachine.h

Summary:   Định nghĩa lớp CEnemyMachine
===================================================================+*/

#ifndef _ENEMYMACHINE_H_
#define _ENEMYMACHINE_H_

#include "GameObject.h"
#include "Gun.h"

/*C+==================================================================
Class:    CEnemyMachine

Summary:  Lớp CEnemyMachine mô tả đối tượng enemy bắn trụ súng trong màn 3.
==================================================================-C*/
class CEnemyMachine : public CMoveableObject
{
private:
	CGun* m_pGun;
	float m_fTimeFire;
	int m_nStatus;

	void UpdateAnimation();
public:
	CEnemyMachine(D3DXVECTOR2 pos, int id, int typeId);
	~CEnemyMachine();

	void Update(float timeFrame);

	void UpdateCollision(vector<CGameObject*> vecGameObjs, float timeFrame);

	bool Kill();
};

#endif
